package com.example.dao;
import com.example.pojo.Personal;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
 * Created by IntelliJ IDEA2021.3
 * @Author: Tenghw
 * @Date: 2022/03/21  16:43
 * @Description:
 */
public interface PersonalDao {

    @Select("select id,name,camp,remarks from personal")
    List<Personal> getAll();

    @Select("select id,name,camp,remarks from personal where id=#{id}")
    Personal getOne(@Param("id") int id);

}
